import { del, get, post } from '../../../utils/request'
import { AddParams, AddResult, ListParams, ListResult } from './type'

export const getCallbackList = (data: ListParams) => {
  return get<ListParams, ListResult>('/api/followup/list', data)
}

export const addCallback=(data:AddParams)=>{
  return post<AddParams,AddResult>('/api/followup/add',data)
}
//删除
export const delCallback=(id:number)=>{
  return del<number,null>(`/api/followup/delete/${id}`)
}